package me.zhenqu.model.dao.impl;

import me.zhenqu.model.dao.StatusCountDao;
import me.zhenqu.model.pojo.entity.StatusCount;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-10
 * Time: 下午4:48
 * To change this template use File | Settings | File Templates.
 */
@Repository("statusCountDao")
public class StatusCountDaoImpl extends ZhenquDaoHelper<StatusCount> implements StatusCountDao {
    @Override
    public StatusCount findByID(Long id) {
        List list = getHibernateTemplate().find("from StatusCount where status_id=?",id);
        if (list==null||list.isEmpty()) return null;
		return (StatusCount)list.get(0);
    }
}
